﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DemoAutofac.Models {
    interface IRepository {
        void Save();
    }

    class SQLRepository : IRepository {
        private ILog _log;
        public SQLRepository(ILog log) 
        {
            _log = log;
        }
        public void Save() {
            Console.WriteLine("SQL repository is saving...");
        }
    }

    class OracleRepository : IRepository {
        private ILog _log;
        public OracleRepository(ILog log) {
            _log = log;
        }
        public void Save() {
            Console.WriteLine("Oracle repository is saving...");
        }
    }
}
